\hypertarget{classSession__mysql}{\section{Session\-\_\-mysql类 参考}
\label{classSession__mysql}\index{Session\-\_\-mysql@{Session\-\_\-mysql}}
}
\subsection*{Public 成员函数}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classSession__mysql_af863dcad74137f3545aca0ca9be8647d}{\-\_\-\-\_\-construct} ()
\item 
\hyperlink{classSession__mysql_a4c1b8c3a279772e5e470bda84f5aa516}{open} (\$save\-\_\-path, \$session\-\_\-name)
\item 
\hyperlink{classSession__mysql_a1b5a3976589dda2a4b8e3662d9876c90}{close} ()
\item 
\hyperlink{classSession__mysql_a8b143ab50c1d29bfac5615b53bb999c5}{read} (\$id)
\item 
\hyperlink{classSession__mysql_a3fae891ec803d280d753eb5861888e4f}{write} (\$id, \$data)
\item 
\hyperlink{classSession__mysql_a44351be4e7dfd4eb978715d6a20e7f22}{destroy} (\$id)
\item 
\hyperlink{classSession__mysql_a1e7bce7b614ef0234cbdcd102461701a}{gc} (\$maxlifetime)
\end{DoxyCompactItemize}
\subsection*{Public 属性}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classSession__mysql_aad7690f40299bfdbdf3f6290d875e60f}{{\bfseries \$lifetime} = 1800}\label{classSession__mysql_aad7690f40299bfdbdf3f6290d875e60f}

\item 
\hypertarget{classSession__mysql_a2e0a0fd72d8b1e06885ab3fb576f455d}{{\bfseries \$model}}\label{classSession__mysql_a2e0a0fd72d8b1e06885ab3fb576f455d}

\item 
\hypertarget{classSession__mysql_a24a37f3ba47abc613efd8ebbc8eaa372}{{\bfseries \$table}}\label{classSession__mysql_a24a37f3ba47abc613efd8ebbc8eaa372}

\end{DoxyCompactItemize}


\subsection{详细描述}
session mysql 数据库存储类 

\subsection{构造及析构函数说明}
\hypertarget{classSession__mysql_af863dcad74137f3545aca0ca9be8647d}{\index{Session\-\_\-mysql@{Session\-\_\-mysql}!\-\_\-\-\_\-construct@{\-\_\-\-\_\-construct}}
\index{\-\_\-\-\_\-construct@{\-\_\-\-\_\-construct}!Session_mysql@{Session\-\_\-mysql}}
\subsubsection[{\-\_\-\-\_\-construct}]{\setlength{\rightskip}{0pt plus 5cm}Session\-\_\-mysql\-::\-\_\-\-\_\-construct (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classSession__mysql_af863dcad74137f3545aca0ca9be8647d}
构造函数 

\subsection{成员函数说明}
\hypertarget{classSession__mysql_a1b5a3976589dda2a4b8e3662d9876c90}{\index{Session\-\_\-mysql@{Session\-\_\-mysql}!close@{close}}
\index{close@{close}!Session_mysql@{Session\-\_\-mysql}}
\subsubsection[{close}]{\setlength{\rightskip}{0pt plus 5cm}Session\-\_\-mysql\-::close (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classSession__mysql_a1b5a3976589dda2a4b8e3662d9876c90}
session\-\_\-set\-\_\-save\-\_\-handler close方法 \begin{DoxyReturn}{返回}
bool 
\end{DoxyReturn}
\hypertarget{classSession__mysql_a44351be4e7dfd4eb978715d6a20e7f22}{\index{Session\-\_\-mysql@{Session\-\_\-mysql}!destroy@{destroy}}
\index{destroy@{destroy}!Session_mysql@{Session\-\_\-mysql}}
\subsubsection[{destroy}]{\setlength{\rightskip}{0pt plus 5cm}Session\-\_\-mysql\-::destroy (
\begin{DoxyParamCaption}
\item[{}]{\$id}
\end{DoxyParamCaption}
)}}\label{classSession__mysql_a44351be4e7dfd4eb978715d6a20e7f22}
删除指定的session\-\_\-id


\begin{DoxyParams}{参数}
{\em \$id} & session \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
bool 
\end{DoxyReturn}
\hypertarget{classSession__mysql_a1e7bce7b614ef0234cbdcd102461701a}{\index{Session\-\_\-mysql@{Session\-\_\-mysql}!gc@{gc}}
\index{gc@{gc}!Session_mysql@{Session\-\_\-mysql}}
\subsubsection[{gc}]{\setlength{\rightskip}{0pt plus 5cm}Session\-\_\-mysql\-::gc (
\begin{DoxyParamCaption}
\item[{}]{\$maxlifetime}
\end{DoxyParamCaption}
)}}\label{classSession__mysql_a1e7bce7b614ef0234cbdcd102461701a}
删除过期的 session


\begin{DoxyParams}{参数}
{\em \$maxlifetime} & 存活期时间 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
bool 
\end{DoxyReturn}
\hypertarget{classSession__mysql_a4c1b8c3a279772e5e470bda84f5aa516}{\index{Session\-\_\-mysql@{Session\-\_\-mysql}!open@{open}}
\index{open@{open}!Session_mysql@{Session\-\_\-mysql}}
\subsubsection[{open}]{\setlength{\rightskip}{0pt plus 5cm}Session\-\_\-mysql\-::open (
\begin{DoxyParamCaption}
\item[{}]{\$save\-\_\-path, }
\item[{}]{\$session\-\_\-name}
\end{DoxyParamCaption}
)}}\label{classSession__mysql_a4c1b8c3a279772e5e470bda84f5aa516}
session\-\_\-set\-\_\-save\-\_\-handler open方法 
\begin{DoxyParams}{参数}
{\em \$save\-\_\-path} & \\
\hline
{\em \$session\-\_\-name} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
true 
\end{DoxyReturn}
\hypertarget{classSession__mysql_a8b143ab50c1d29bfac5615b53bb999c5}{\index{Session\-\_\-mysql@{Session\-\_\-mysql}!read@{read}}
\index{read@{read}!Session_mysql@{Session\-\_\-mysql}}
\subsubsection[{read}]{\setlength{\rightskip}{0pt plus 5cm}Session\-\_\-mysql\-::read (
\begin{DoxyParamCaption}
\item[{}]{\$id}
\end{DoxyParamCaption}
)}}\label{classSession__mysql_a8b143ab50c1d29bfac5615b53bb999c5}
读取session\-\_\-id session\-\_\-set\-\_\-save\-\_\-handler read方法 \begin{DoxyReturn}{返回}
string 读取session\-\_\-id 
\end{DoxyReturn}
\hypertarget{classSession__mysql_a3fae891ec803d280d753eb5861888e4f}{\index{Session\-\_\-mysql@{Session\-\_\-mysql}!write@{write}}
\index{write@{write}!Session_mysql@{Session\-\_\-mysql}}
\subsubsection[{write}]{\setlength{\rightskip}{0pt plus 5cm}Session\-\_\-mysql\-::write (
\begin{DoxyParamCaption}
\item[{}]{\$id, }
\item[{}]{\$data}
\end{DoxyParamCaption}
)}}\label{classSession__mysql_a3fae891ec803d280d753eb5861888e4f}
写入session\-\_\-id 的值


\begin{DoxyParams}{参数}
{\em \$id} & session \\
\hline
{\em \$data} & 值 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
mixed query 执行结果 
\end{DoxyReturn}


该类的文档由以下文件生成\-:\begin{DoxyCompactItemize}
\item 
templi/\-Session/Session\-\_\-mysql.\-class.\-php\end{DoxyCompactItemize}
